package com.data.modules.online.cgform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

@TableName("onl_cgform_enhance_java")
public class OnlCgformEnhanceJava implements Serializable {
    private static final long serialVersionUID = 1;
    private String activeStatus;
    private String buttonCode;
    private String cgJavaType;
    private String cgJavaValue;
    private String cgformHeadId;
    private String event;
    @TableId(type = IdType.ASSIGN_UUID)

    private String id;


    public boolean canEqual(Object other) {
        return other instanceof OnlCgformEnhanceJava;
    }

    @Override
    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof OnlCgformEnhanceJava)) {
            return false;
        }
        OnlCgformEnhanceJava onlCgformEnhanceJava = (OnlCgformEnhanceJava) o;
        if (!onlCgformEnhanceJava.canEqual(this)) {
            return false;
        }
        String id = getId();
        String id2 = onlCgformEnhanceJava.getId();
        if (id != null ? !id.equals(id2) : id2 != null) {
            return false;
        }
        String cgformHeadId2 = getCgformHeadId();
        String cgformHeadId3 = onlCgformEnhanceJava.getCgformHeadId();
        if (cgformHeadId2 != null ? !cgformHeadId2.equals(cgformHeadId3) : cgformHeadId3 != null) {
            return false;
        }
        String buttonCode2 = getButtonCode();
        String buttonCode3 = onlCgformEnhanceJava.getButtonCode();
        if (buttonCode2 != null ? !buttonCode2.equals(buttonCode3) : buttonCode3 != null) {
            return false;
        }
        String cgJavaType2 = getCgJavaType();
        String cgJavaType3 = onlCgformEnhanceJava.getCgJavaType();
        if (cgJavaType2 != null ? !cgJavaType2.equals(cgJavaType3) : cgJavaType3 != null) {
            return false;
        }
        String cgJavaValue2 = getCgJavaValue();
        String cgJavaValue3 = onlCgformEnhanceJava.getCgJavaValue();
        if (cgJavaValue2 != null ? !cgJavaValue2.equals(cgJavaValue3) : cgJavaValue3 != null) {
            return false;
        }
        String activeStatus2 = getActiveStatus();
        String activeStatus3 = onlCgformEnhanceJava.getActiveStatus();
        if (activeStatus2 != null ? !activeStatus2.equals(activeStatus3) : activeStatus3 != null) {
            return false;
        }
        String event2 = getEvent();
        String event3 = onlCgformEnhanceJava.getEvent();
        if (event2 == null) {
            if (event3 == null) {
                return true;
            }
        } else if (event2.equals(event3)) {
            return true;
        }
        return false;
    }

    @Override
    public int hashCode() {
        int i = 43;
        String id = getId();
        int hashCode = id == null ? 43 : id.hashCode();
        String cgformHeadId2 = getCgformHeadId();
        int i2 = (hashCode + 59) * 59;
        int hashCode2 = cgformHeadId2 == null ? 43 : cgformHeadId2.hashCode();
        String buttonCode2 = getButtonCode();
        int i3 = (hashCode2 + i2) * 59;
        int hashCode3 = buttonCode2 == null ? 43 : buttonCode2.hashCode();
        String cgJavaType2 = getCgJavaType();
        int i4 = (hashCode3 + i3) * 59;
        int hashCode4 = cgJavaType2 == null ? 43 : cgJavaType2.hashCode();
        String cgJavaValue2 = getCgJavaValue();
        int i5 = (hashCode4 + i4) * 59;
        int hashCode5 = cgJavaValue2 == null ? 43 : cgJavaValue2.hashCode();
        String activeStatus2 = getActiveStatus();
        int i6 = (hashCode5 + i5) * 59;
        int hashCode6 = activeStatus2 == null ? 43 : activeStatus2.hashCode();
        String event2 = getEvent();
        int i7 = (hashCode6 + i6) * 59;
        if (event2 != null) {
            i = event2.hashCode();
        }
        return i7 + i;
    }

    public void setActiveStatus(String activeStatus2) {
        this.activeStatus = activeStatus2;
    }

    public void setButtonCode(String buttonCode2) {
        this.buttonCode = buttonCode2;
    }

    public void setCgJavaType(String cgJavaType2) {
        this.cgJavaType = cgJavaType2;
    }

    public void setCgJavaValue(String cgJavaValue2) {
        this.cgJavaValue = cgJavaValue2;
    }

    public void setCgformHeadId(String cgformHeadId2) {
        this.cgformHeadId = cgformHeadId2;
    }

    public void setEvent(String event2) {
        this.event = event2;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "OnlCgformEnhanceJava(id=" + getId() + ", cgformHeadId=" + getCgformHeadId() + ", buttonCode=" + getButtonCode() + ", cgJavaType=" + getCgJavaType() + ", cgJavaValue=" + getCgJavaValue() + ", activeStatus=" + getActiveStatus() + ", event=" + getEvent() + ")";
    }

    public String getId() {
        return this.id;
    }

    public String getCgformHeadId() {
        return this.cgformHeadId;
    }

    public String getButtonCode() {
        return this.buttonCode;
    }

    public String getCgJavaType() {
        return this.cgJavaType;
    }

    public String getCgJavaValue() {
        return this.cgJavaValue;
    }

    public String getActiveStatus() {
        return this.activeStatus;
    }

    public String getEvent() {
        return this.event;
    }
}
